/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package treenode.visitor;

/**
 *
 * @author Bartek
 */
public class AdditionNode extends BinaryOperatorNode {
    
    public AdditionNode(TreeNode left, TreeNode right) {
        super(left, right);
    }
    
    @Override
    public String getLabel()
    {
       return "+";
    }
    
    @Override
    public int compute(int left, int right) {
        return left + right;
    }
}
